import ajax from './public'

export function getChatList(params) { //获取消息列表
	return ajax.fetchGet('/get-chat-list', params)
}

export function getMessageList(params) { // 获取信息列表
	return ajax.fetchGet('/get-chat-msg-list', params)
}

export function sendMessage(params) { // 发送信息
	return ajax.fetchPost('/send-chat-msg', params)
}

export function getChatRoom(params) { // 获取房间id
	return ajax.fetchGet('/get-chat-room', params)
}

export function getChannel(params) {
	return ajax.fetchGet('/get-channel', params)
}